package com.util;

import cn.hutool.crypto.SecureUtil;
import cn.hutool.http.HttpRequest;
import cn.hutool.json.JSONUtil;


/**
 * 作者 ：lichao
 * 部门 : 开发二部
 * 时间 ：2018/9/26
 * 公司 ：国金黄金
 */
public class B {

    public static void main(String[] args) {
        /*StringBuilder sb = new StringBuilder();
        sb.append("7427B9763CCA1DD625C753FABA4AB066").append("key").append("5AE6C1EC04B0156EA24AC99402265936").append("ydnumber").append("57100549293");
        System.out.println(sb);
        System.out.println(SecureUtil.md5(sb.toString()).toUpperCase());

        String json = "";

        String key = HttpRequest.post("http://testapi.ky-express.com/kyeopenapi/AppResourceService/ElectronicWaybillPlaceOrder")
                .header("key", "10217")
                .header("Content-Type", "application/json")
                .header("access-token", SecureUtil.md5(sb.toString()).toUpperCase())
                .body(json)
                .execute().body();

        System.out.println(key);*/


        String ss = "<?xml version='1.0' encoding='UTF-8'?><Response service=\"OrderService\"><Head>OK</Head><Body><OrderResponse filter_result=\"2\" destcode=\"020\" mailno=\"444000010085\" origincode=\"755\" orderid=\"QIAO-20171017001\"/></Body></Response>";


        System.out.println(ss);

    }
}
